package com.site.util;

public class ReplaceHTML {
    /**
     * HTML 过滤
     * @param html 被过滤的HTML
     * @return  过滤后的HTML
     */
	public static String Html(String html)
	{
		html = html.replaceAll("&", "&amp;");
		html = html.replaceAll("<", "&lt;");
		html = html.replaceAll(">", "&gt;");
		html = html.replaceAll("'", "&#39;");
		html = html.replaceAll("\"", "&quot");
		html = html.replaceAll("\n", "<br>");
		return html;
	}
}
